/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.*;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.ShapeRange*/
public class ShapeRange extends JavaScriptObject {

	protected ShapeRange() { }
	public native final ExcelApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final int getCount()/*-{
		return this.Count;
	}-*/;

	public native final Shape item( Object index)/*-{
		return this.Item( index);
	}-*/;

	public native final Shape _Default( Object index)/*-{
		return this._Default( index);
	}-*/;

	public native final JavaScriptObject get_NewEnum()/*-{
		return this._NewEnum;
	}-*/;

	protected native final void _align( int alignCmd,  int relativeTo)/*-{
		this.Align( alignCmd, relativeTo);
	}-*/;

	public final void align(MsoAlignCmd alignCmd, MsoTriState relativeTo){
		_align(alignCmd.getValue(), relativeTo.getValue());
	}
	public native final void apply()/*-{
		this.Apply( );
	}-*/;

	public native final void delete()/*-{
		this.Delete( );
	}-*/;

	protected native final void _distribute( int distributeCmd,  int relativeTo)/*-{
		this.Distribute( distributeCmd, relativeTo);
	}-*/;

	public final void distribute(MsoDistributeCmd distributeCmd, MsoTriState relativeTo){
		_distribute(distributeCmd.getValue(), relativeTo.getValue());
	}
	public native final ShapeRange duplicate()/*-{
		return this.Duplicate( );
	}-*/;

	protected native final void _flip( int flipCmd)/*-{
		this.Flip( flipCmd);
	}-*/;

	public final void flip(MsoFlipCmd flipCmd){
		_flip(flipCmd.getValue());
	}
	public native final void incrementLeft(float increment)/*-{
		this.IncrementLeft( increment);
	}-*/;

	public native final void incrementRotation(float increment)/*-{
		this.IncrementRotation( increment);
	}-*/;

	public native final void incrementTop(float increment)/*-{
		this.IncrementTop( increment);
	}-*/;

	public native final Shape group()/*-{
		return this.Group( );
	}-*/;

	public native final void pickUp()/*-{
		this.PickUp( );
	}-*/;

	public native final void rerouteConnections()/*-{
		this.RerouteConnections( );
	}-*/;

	public native final Shape regroup()/*-{
		return this.Regroup( );
	}-*/;

	protected native final void _scaleHeight(float factor,  int relativeToOriginalSize,  Object scale)/*-{
		this.ScaleHeight( factor, relativeToOriginalSize, scale);
	}-*/;

	public final void scaleHeight(float factor, MsoTriState relativeToOriginalSize,  Object scale){
		_scaleHeight(factor, relativeToOriginalSize.getValue(), scale);
	}
	protected native final void _scaleWidth(float factor,  int relativeToOriginalSize,  Object scale)/*-{
		this.ScaleWidth( factor, relativeToOriginalSize, scale);
	}-*/;

	public final void scaleWidth(float factor, MsoTriState relativeToOriginalSize,  Object scale){
		_scaleWidth(factor, relativeToOriginalSize.getValue(), scale);
	}
	public native final void select( Object replace)/*-{
		this.Select( replace);
	}-*/;

	public native final void setShapesDefaultProperties()/*-{
		this.SetShapesDefaultProperties( );
	}-*/;

	public native final ShapeRange ungroup()/*-{
		return this.Ungroup( );
	}-*/;

	protected native final void _zOrder( int zOrderCmd)/*-{
		this.ZOrder( zOrderCmd);
	}-*/;

	public final void zOrder(MsoZOrderCmd zOrderCmd){
		_zOrder(zOrderCmd.getValue());
	}
	public native final Adjustments getAdjustments()/*-{
		return this.Adjustments;
	}-*/;

	public native final TextFrame getTextFrame()/*-{
		return this.TextFrame;
	}-*/;

	protected native final int _getAutoShapeType()/*-{
		return this.AutoShapeType;
	}-*/;

	public final MsoAutoShapeType getAutoShapeType(){
		return MsoAutoShapeType.valueOf(_getAutoShapeType());
	}
	protected native final void _setAutoShapeType( int value)/*-{
		this.AutoShapeType = value;
	}-*/;

	public final void setAutoShapeType(MsoAutoShapeType value){
		_setAutoShapeType(value.getValue());
	}
	public native final CalloutFormat getCallout()/*-{
		return this.Callout;
	}-*/;

	public native final int getConnectionSiteCount()/*-{
		return this.ConnectionSiteCount;
	}-*/;

	protected native final int _getConnector()/*-{
		return this.Connector;
	}-*/;

	public final MsoTriState getConnector(){
		return MsoTriState.valueOf(_getConnector());
	}
	public native final ConnectorFormat getConnectorFormat()/*-{
		return this.ConnectorFormat;
	}-*/;

	public native final FillFormat getFill()/*-{
		return this.Fill;
	}-*/;

	public native final GroupShapes getGroupItems()/*-{
		return this.GroupItems;
	}-*/;

	public native final float getHeight()/*-{
		return this.Height;
	}-*/;

	public native final void setHeight(float value)/*-{
		this.Height = value;
	}-*/;

	protected native final int _getHorizontalFlip()/*-{
		return this.HorizontalFlip;
	}-*/;

	public final MsoTriState getHorizontalFlip(){
		return MsoTriState.valueOf(_getHorizontalFlip());
	}
	public native final float getLeft()/*-{
		return this.Left;
	}-*/;

	public native final void setLeft(float value)/*-{
		this.Left = value;
	}-*/;

	public native final XlsLineFormat getLine()/*-{
		return this.Line;
	}-*/;

	protected native final int _getLockAspectRatio()/*-{
		return this.LockAspectRatio;
	}-*/;

	public final MsoTriState getLockAspectRatio(){
		return MsoTriState.valueOf(_getLockAspectRatio());
	}
	protected native final void _setLockAspectRatio( int value)/*-{
		this.LockAspectRatio = value;
	}-*/;

	public final void setLockAspectRatio(MsoTriState value){
		_setLockAspectRatio(value.getValue());
	}
	public native final String getName()/*-{
		return this.Name;
	}-*/;

	public native final void setName(String value)/*-{
		this.Name = value;
	}-*/;

	public native final ShapeNodes getNodes()/*-{
		return this.Nodes;
	}-*/;

	public native final float getRotation()/*-{
		return this.Rotation;
	}-*/;

	public native final void setRotation(float value)/*-{
		this.Rotation = value;
	}-*/;

	public native final PictureFormat getPictureFormat()/*-{
		return this.PictureFormat;
	}-*/;

	public native final ShadowFormat getShadow()/*-{
		return this.Shadow;
	}-*/;

	public native final TextEffectFormat getTextEffect()/*-{
		return this.TextEffect;
	}-*/;

	public native final ThreeDFormat getThreeD()/*-{
		return this.ThreeD;
	}-*/;

	public native final float getTop()/*-{
		return this.Top;
	}-*/;

	public native final void setTop(float value)/*-{
		this.Top = value;
	}-*/;

	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoShapeType getType(){
		return MsoShapeType.valueOf(_getType());
	}
	protected native final int _getVerticalFlip()/*-{
		return this.VerticalFlip;
	}-*/;

	public final MsoTriState getVerticalFlip(){
		return MsoTriState.valueOf(_getVerticalFlip());
	}
	public native final JavaScriptObject getVertices()/*-{
		return this.Vertices;
	}-*/;

	protected native final int _getVisible()/*-{
		return this.Visible;
	}-*/;

	public final MsoTriState getVisible(){
		return MsoTriState.valueOf(_getVisible());
	}
	protected native final void _setVisible( int value)/*-{
		this.Visible = value;
	}-*/;

	public final void setVisible(MsoTriState value){
		_setVisible(value.getValue());
	}
	public native final float getWidth()/*-{
		return this.Width;
	}-*/;

	public native final void setWidth(float value)/*-{
		this.Width = value;
	}-*/;

	public native final int getZOrderPosition()/*-{
		return this.ZOrderPosition;
	}-*/;

	protected native final int _getBlackWhiteMode()/*-{
		return this.BlackWhiteMode;
	}-*/;

	public final MsoBlackWhiteMode getBlackWhiteMode(){
		return MsoBlackWhiteMode.valueOf(_getBlackWhiteMode());
	}
	protected native final void _setBlackWhiteMode( int value)/*-{
		this.BlackWhiteMode = value;
	}-*/;

	public final void setBlackWhiteMode(MsoBlackWhiteMode value){
		_setBlackWhiteMode(value.getValue());
	}
	public native final String getAlternativeText()/*-{
		return this.AlternativeText;
	}-*/;

	public native final void setAlternativeText(String value)/*-{
		this.AlternativeText = value;
	}-*/;

	public native final DiagramNode getDiagramNode()/*-{
		return this.DiagramNode;
	}-*/;

	protected native final int _getHasDiagramNode()/*-{
		return this.HasDiagramNode;
	}-*/;

	public final MsoTriState getHasDiagramNode(){
		return MsoTriState.valueOf(_getHasDiagramNode());
	}
	public native final Diagram getDiagram()/*-{
		return this.Diagram;
	}-*/;

	protected native final int _getHasDiagram()/*-{
		return this.HasDiagram;
	}-*/;

	public final MsoTriState getHasDiagram(){
		return MsoTriState.valueOf(_getHasDiagram());
	}
	protected native final int _getChild()/*-{
		return this.Child;
	}-*/;

	public final MsoTriState getChild(){
		return MsoTriState.valueOf(_getChild());
	}
	public native final Shape getParentGroup()/*-{
		return this.ParentGroup;
	}-*/;

	public native final CanvasShapes getCanvasItems()/*-{
		return this.CanvasItems;
	}-*/;

	public native final int getID()/*-{
		return this.ID;
	}-*/;

	public native final void canvasCropLeft(float increment)/*-{
		this.CanvasCropLeft( increment);
	}-*/;

	public native final void canvasCropTop(float increment)/*-{
		this.CanvasCropTop( increment);
	}-*/;

	public native final void canvasCropRight(float increment)/*-{
		this.CanvasCropRight( increment);
	}-*/;

	public native final void canvasCropBottom(float increment)/*-{
		this.CanvasCropBottom( increment);
	}-*/;

	public native final Chart getChart()/*-{
		return this.Chart;
	}-*/;

	protected native final int _getHasChart()/*-{
		return this.HasChart;
	}-*/;

	public final MsoTriState getHasChart(){
		return MsoTriState.valueOf(_getHasChart());
	}
	public native final TextFrame2 getTextFrame2()/*-{
		return this.TextFrame2;
	}-*/;

	protected native final int _getShapeStyle()/*-{
		return this.ShapeStyle;
	}-*/;

	public final MsoShapeStyleIndex getShapeStyle(){
		return MsoShapeStyleIndex.valueOf(_getShapeStyle());
	}
	protected native final void _setShapeStyle( int value)/*-{
		this.ShapeStyle = value;
	}-*/;

	public final void setShapeStyle(MsoShapeStyleIndex value){
		_setShapeStyle(value.getValue());
	}
	protected native final int _getBackgroundStyle()/*-{
		return this.BackgroundStyle;
	}-*/;

	public final MsoBackgroundStyleIndex getBackgroundStyle(){
		return MsoBackgroundStyleIndex.valueOf(_getBackgroundStyle());
	}
	protected native final void _setBackgroundStyle( int value)/*-{
		this.BackgroundStyle = value;
	}-*/;

	public final void setBackgroundStyle(MsoBackgroundStyleIndex value){
		_setBackgroundStyle(value.getValue());
	}
	public native final SoftEdgeFormat getSoftEdge()/*-{
		return this.SoftEdge;
	}-*/;

	public native final GlowFormat getGlow()/*-{
		return this.Glow;
	}-*/;

	public native final ReflectionFormat getReflection()/*-{
		return this.Reflection;
	}-*/;

}
